home *** CD-ROM | disk | FTP | other *** search
Wrap
Text File | 1994-01-03 | 2.0 KB | 139 lines | [ RobW/RWAR]
#Vortex v2.2 #written by Paul Schmidt #incept date November 15, 1993 #modified December 29, 1993 #e-mail: schmidtp@carleton.edu #snail mail:Paul Schmidt # Carleton College # Northfield, MN 55057 {Vortex is only an idea that is yet to be perfected, but so far it is doing pretty good. Take what you wish for inspiration, but I would discourage you from copying whole sections of code. Besides, you can write better code than I can anyway.} setup: shoot range' setint 300 range' setparam goUp bot' setint goDown top' setint goLeft right' setint goRight left' setint inton start: x 230 > startLeft startRight ife y 230 > startUp startDown ifeg startUp: -4 speedy' store main jump startDown: 4 speedy' store main jump startRight: 3 speedx' store return startLeft: -3 speedx' store return goUp: -4 speedy' store rti goDown: 4 speedy' store rti goRight: 3 speedx' store rti goLeft: -3 speedx' store rti main: 10 aim' store 60 aim' store 110 aim' store 160 aim' store 210 aim' store 260 aim' store 310 aim' store 330 aim' store 20 aim' store 70 aim' store 120 aim' store 170 aim' store 220 aim' store 270 aim' store 340 aim' store 30 aim' store 80 aim' store 130 aim' store 180 aim' store 230 aim' store 280 aim' store 350 aim' store 40 aim' store 90 aim' store 140 aim' store 190 aim' store 240 aim' store 290 aim' store 360 aim' store 50 aim' store 100 aim' store 150 aim' store 200 aim' store 250 aim' store 300 aim' store 320 aim' store main jump shoot: aim doppler 5 * + range dup 48 < and wham ifg range dup 90 < and burst ifg range dup 130 < and volley ifg range energy 100 > and more ifg drop rti more: aim' store 30 fire' store rti volley: energy 20 > runAway if energy 50 < partial ifg aim' store 30 fire' store rti runAway: aim 5 cos speedy' store aim -5 sin speedx' store return burst: energy 20 > runAway if energy 80 < partial ifg aim' store 60 bullet' store rti partial: aim' store energy 20 - fire' store rti wham: aim' store 150 bullet' store abort: dropall setup jump